<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<?php echo base_url();?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>河南大学计算机与信息工程学院后台管理系统</title>
</head>
<body>
<?php if(!empty($error)){
	echo $error;
}?>
<table border="1" width="60%" style="margin:0 auto;">
	<caption style="height:30px;line-height:30px;"><font color="#AE39B"><b style="font-size:16px;">文件上传</b></font></caption>	
	<form action="<?php echo site_url("admin/check_add_file");?>" method="post" name="myform" enctype="multipart/form-data">
		<input type="hidden" name="cid" value="<?php echo $cid;?>"/>
		<tr>
			<th width="20%">文件名称</th>
			<td width="80%"><input type="text" name="name" style="width:90%"/></td>
		</tr>
		<tr>
			<th>上传日期</th>
			<td><input type="text" name="time" value="<?php echo date("Y-m-d");?>" style="width:90%"/></td>
		</tr>
		<tr>
			<th>选择文件</th>
			<td><input type="file" name="userfile"/></td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" name="submit" onclick="check()" value="确定"/></td>
		</tr>
	</form>
</table>
</body>
<script type="text/javascript">
function check(){
	if(myform.userfile.value==""){
		alert("请选择上传文件");
		return false;
	}
}
</script>
</html>